copy .\target\jekins-demo-1.0-SNAPSHOT.jar C:\project /Y
C:\project\jekins-demo.exe stop
set h=%time:~0,2%
set h=%h: =0%
set filename=%date:~0,4%%date:~5,2%%date:~8,2%%h%%time:~3,2%%time:~6,2%
if exist C:\project\jekins-demo.jar RENAME C:\project\jekins-demo.jar jekins-demo_%filename%.jar
if exist C:\project\jekins-demo_%filename%.jar move C:\project\jekins-demo_%filename%.jar C:\project\backup\jar
RENAME C:\project\jekins-demo-1.0-SNAPSHOT.jar jekins-demo.jar
C:\project\jekins-demo.exe start
